﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类BGD_SUGGEST
     ///</summary>
     public class BGD_SUGGEST
     {
         private int __ID=0 ;
         private string __JCLSH=string.Empty ;
         private string __SuggestItems=string.Empty ;
         private bool? __SingleFlag=null ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public BGD_SUGGEST()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("JCLSH",false);
             this.__Changed.Add("SuggestItems",false);
             this.__Changed.Add("SingleFlag",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__JCLSH =string.Empty;
             this.__SuggestItems =string.Empty;
             this.__SingleFlag =null;
             this.__Changed["ID"] = false;
             this.__Changed["JCLSH"] = false;
             this.__Changed["SuggestItems"] = false;
             this.__Changed["SingleFlag"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[JCLSH]的数据
         /// </summary>
         public string JCLSH
         {
              set{ __JCLSH = value.Replace("'","’"); __Changed["JCLSH"] = true;}
              get{return __JCLSH;}
         }
         /// <summary>
         ///设置或获取类中的[SuggestItems]的数据
         /// </summary>
         public string SuggestItems
         {
              set{ __SuggestItems = value.Replace("'","’"); __Changed["SuggestItems"] = true;}
              get{return __SuggestItems;}
         }
         /// <summary>
         ///设置或获取类中的[SingleFlag]的数据
         /// </summary>
         public bool? SingleFlag
         {
              set{ __SingleFlag = value; __Changed["SingleFlag"] = true;}
              get{return __SingleFlag;}
         }
    }
}
